package com.alibaba.springbootrbac.model.response.user;

import com.alibaba.springbootrbac.model.response.permission.PermissionVO;
import com.alibaba.springbootrbac.model.response.role.RoleVO;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ZhouYaDong
 * @date 2025/8/22
 * @description 用户详情视图模型
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInfoVO {

    private String id;
    private String username;
    private String phone;
    private String email;
    private Integer status;

    /**
     * 用户拥有的角色列表
     */
    private List<RoleVO> roles;

    /**
     * 用户拥有的权限列表
     */
    private List<PermissionVO> permissions;

}
